@echo off
set py3_exe="%PYTHON3_HOME%\python"
set py3venv_dir=.\py3venv
echo "* create python3 venev"
%py3_exe% -m venv %py3venv_dir% --upgrade
if not %errorlevel%==0 (
    echo "create py3venv failed" 
    goto:eof
)


set py3_exe="%py3venv_dir%\Scripts\python"
set pip_exe="%py3venv_dir%\Scripts\pip"
echo "* install urllib3"
%pip_exe% install urllib3 --upgrade
if not %errorlevel%==0 (
    echo "install urllib3 failed" 
    goto:eof
)

%py3_exe% install_deps.py --clear
if not %errorlevel%==0 (
    echo "install deps failed"
    goto:eof
)

echo "* work done!!!"